//
//  LTLeftViewController.m
//  LocalTravel
//
//  Created by zheng ji on 14-2-25.
//  Copyright (c) 2014年 jxw. All rights reserved.
//

#import "LTLeftViewController.h"
#import "constants.h"
#import "LTThemeView.h"
#define left_margin 0
#define top_margin 65
#define searchField_height 30  //搜索框高度
#define lastVisitTabelView_height 150 //主题表格高度
#define themeTabelView_height 450 //主题表格高度

@interface LTLeftViewController ()
{
    UITextField* _searchField;
    LTThemeView* _themeTabelView;
    
}
@end

@implementation LTLeftViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    //self.title=@"本地游";
    
    
    [self initUI];
	// Do any additional setup after loading the view.
}
-(void)initUI{
   //CGFloat start_y=self.navigationController.navigationBar.frame.size.height;
    CGFloat start_y=top_margin;
    CGFloat start_x=left_margin;
    CGFloat space_vertical=5; //两个控件垂直之间的距离
    
       _searchField=[[UITextField alloc] initWithFrame:CGRectMake(start_x, start_y, left_pane_width, searchField_height)];
    _searchField.borderStyle=UITextBorderStyleRoundedRect;
    _searchField.placeholder=@"输入景点名称搜索";
    
    [self.view addSubview:_searchField];
    
     start_y=start_y + searchField_height + space_vertical;
    
    _themeTabelView=[[LTThemeView alloc] initWithFrame:CGRectMake(start_x, start_y, left_pane_width, themeTabelView_height)];
    
    [self.view addSubview:_themeTabelView];
    
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void) dealloc{
   
    }
@end
